onload = () => {
  let box = document.querySelector('.box')
  box.ondblclick = function () {
    this.style.backgroundColor = 'yellow'
  }
  box.onmouseover = function () {
    this.style.backgroundColor = 'red'
  }
  box.onmouseout = function () {
    this.style.backgroundColor = 'green'
  }
  // 鼠标滚轮事件
  box.onmousewheel = function () {
    this.style.backgroundColor = 'pink'
  }
  // 阻止鼠标右键事件
  box.oncontextmenu = function () {
    console.log('box')
    return false
  }
}
